<?php
  namespace Home\Controller;
  use Think\Controller;

  class EmptyController extends PublicController {

      public function _initialize(){

          $controller_name = strtolower(CONTROLLER_NAME);

          $allow_module_list = array_map(create_function('$item', 'return strtolower("$item");'), C('MODULE_ALLOW_LIST'));

          if(!in_array($controller_name, $allow_module_list)){
              redirect(SITE_URL);
          }

      }

      public function _empty(){
          redirect(SITE_URL);
      }

  }